import {createApp} from 'vue'
import App from './App.vue'

// 引入 Element Plus 和默认样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from "./router/router.js"
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import './assets/main.css'

let app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}


app.use(ElementPlus)
app.use(router)

// 挂载根组件
app.mount('#app')
